/**
 * 小提示框
 * 仅仅用作提示作用，确认框用confirmUI
 */
class SmallConfirmUI extends UIBase{
    private lb_tips:eui.Label;
    private btn_sure:BaseButton;
    constructor(data?)
    {
        data.showBG = true;
        super('SmallConfirmView',data);
    }

    public init()
    {
        super.init(true);
        if(this.data)
        {
            let tips_id = this.data.tips_id;
            let str = StringUtil.getSwfLangStr(tips_id);
            this.lb_tips.text = str;
        }
    }

    public addEvent()
    {
        this.btn_sure.addTapHandler(this.close, this);
    }

    public close()
    {
        this.remove(1);
    }

    public removeEvent()
    {
        this.btn_sure.removeTapHandler();
    }

    public clear()
    {
        super.clear();
    }
}